package com.wicket.okrframework.integration.dto;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc OldInductionRecordDto
 * @使用场景
 */
@Data
public class OldInductionRecordDto extends BaseDto implements Serializable {

  /**
   * 身份人员ID
   */
  @ApiModelProperty("身份人员ID")
  private String originalRoleMemberId;

  /**
   * 个人账号ID
   */
  @ApiModelProperty("个人账号ID")
  private String userId;

  /**
   * 就职单位对象实例ID
   */
  @ApiModelProperty("就职单位对象实例ID")
  private String entityId;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    OldInductionRecordDto that = (OldInductionRecordDto) o;
    return (
      originalRoleMemberId == that.originalRoleMemberId &&
      userId == that.userId &&
      entityId == that.entityId
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      originalRoleMemberId,
      userId,
      entityId
    );
  }

}
